State and federal marriage laws provide a safety net of legal and economic protections for married couples and their children — including the ability to visit your spouse in the hospital and to transfer property, which can mean being able to remain in the family home when your spouse has passed away.