The Prime Minister of Romania has survived an attempt to bring a criminal prosecution against him.