Rushed through by Republicans and signed by President Clinton on the eve of the 1996 election , the law allows states to ignore marriages performed in other states and denies federal recognition of legal gay marriages .