A federal judge overseeing a sprawling lawsuit about homelessness in Los Angeles ordered the city and county Tuesday to offer some form of shelter or housing to the entire homeless population of skid row by October.