The Department of Veterans Affairs must establish hundreds of additional shelter beds within 18 months and build another 1,800 units of subsidized apartments by 2030 after a federal court ruled the agency has failed to comply with an agreement to develop a Los Angeles campus with housing for disabled homeless veterans.