The federal government is set to file lawsuits against dozens of major banks for allegedly misrepresenting the quality of their mortgage securities.