The Justice Department will instruct all of its employees across the country, for the first time, to give lawful same-sex marriages sweeping equal protection under the law in every program it administers, from courthouse proceedings to prison visits to the compensation of surviving spouses of public safety officers.

In a new policy memo, the department will spell out the rights of same-sex couples, including the right to decline to give testimony that might incriminate their spouses, even if their marriages are not recognized in the state where the couple lives.

Under the Justice Department policy, federal inmates in same-sex marriages will also be entitled to the same rights and privileges as inmates in heterosexual marriages, including visitation by a spouse, escorted trips to attend a spouse’s funeral, correspondence with a spouse, and compassionate release or reduction in sentence based on the incapacitation of an inmate’s spouse.

In addition, an inmate in a same-sex marriage can be furloughed to be present during a crisis involving a spouse. In bankruptcy cases, same-sex married couples will be eligible to file for bankruptcy jointly. Domestic support obligations will include debts, such as alimony, owed to a former same-sex spouse. Certain debts to same-sex spouses or former spouses should be excepted from discharge.