The prime minister is set to assume presidential powers on an interim basis. The constitutional court will now review the vote, which could take months.