He quit the government in 1998 , but returned in 2000 and served as prime minister until quitting again in late 2004 , after Lebanon 's pro-Syrian parliament voted to extend the term of pro-Syrian president and political rival Emile Lahoud .