Legislation sponsored by Sweeney provides state pensions to surviving family members of firefighters who die in the line of duty , as well as the law that removes the remarriage prohibition to receive death benefits for spouses of firefighters killed while serving the public good .