The head of Slovakia’s main ruling party gave up a bid to lead the country’s top court on Tuesday and warned a coalition partner against voting with the opposition on appointing judges.