Pakistan's top court rules against PM Imran Khan, bringing his ouster closer