The P-3C Orion is fitted with a retractable sextant. Pre-GPS it was a primary navigation aid, but has been maintained post-GPS as an emergency system in case GPS fails. I don't know offhand of its replacement, the P-8 Poseidon, has any kind of celestial navigation system as a backup, but I would not be surprised if it did.