Turkish court clears way for Istanbul’s Hagia Sophia museum to revert to a mosque