Pakistan coup drama shifts to top court