BANGKOK, Thailand — Thailand’s top constitutional court “suspended” Prime Minister Prayuth Chan-ocha from office on Wednesday, immediately replacing him with his deputy, while judges decide when the authoritarian Mr. Prayuth’s term as prime minister should end after he seized power in a 2014 coup and won a 2019 election.