The federal government could render homelessness rare, brief and nonrecurring. The cure for homelessness is housing, and, as it happens, the money is available: Congress could shift billions in annual federal subsidies from rich homeowners to people who don’t have homes.