In a case that could make Iowa the first Midwestern state to legalize same-sex marriage, the Iowa Supreme Court on Tuesday pressed lawyers for both sides with sharp questions on topics like  the 4,000-year-old history of marriage  and whether a ruling favoring gay couples would open the door to polygamy.