All legal same-sex marriages will be recognized for U.S. federal tax purposes, the Obama administration said on Thursday, allowing married gay couples to claim the same tax benefits as their heterosexual peers.

As expected after a landmark Supreme Court ruling in June, the Treasury Department and Internal Revenue Service said: