SAN FRANCISCO — In a strongly worded legal brief, the Obama administration has said the federal act that defines marriage as being between a man and a woman was motivated by hostility toward gays and lesbians and is unconstitutional.

The brief was filed Friday in federal court in San Francisco in support of a lesbian federal employee’s lawsuit claiming the government wrongly denied health insurance coverage to her same-sex spouse.