The bill has attracted considerable controversy in recent weeks.