Passions flare as Supreme Court hears case with major impact on homelessness policy