The clause in the sentence is: "while the whales rose to the surface."
This is a dependent or subordinate clause, specifically an adverbial clause, because it provides additional information about when or under what conditions something happened. In this case, it tells us what the whales were doing when the moon shone on the ocean.