In a filing by the Justice Department, administration lawyers made it clear for the first time in court that the president thinks the 13-year-old Defense of Marriage Act, which denies benefits to domestic partners of federal employees and allows states to reject same-sex marriages performed in other states, discriminates against gays and should be repealed.