The head of South Korea 's ruling Uri Party has resigned after parliament failed to pass several pieces of reform legislation by the end of 2004 .