The Obama administration filed a brief in federal court defending a law that President Obama has urged Congress to repeal.