The U.S. government said on Thursday that the biggest U.S. banks will provide $25 billion in relief to distressed homeowners and states, as officials hold lenders responsible for taking illegal shortcuts during foreclosures and other mortgage paperwork.