Three eastern European men have won a High Court fight with Home Office ministers after being told they could be deported as a result of sleeping rough.
Latvian Gunars Gureckis and Poles Mariusz Cielecki and Mariusz Perlinski said ministers had adopted a policy on rough sleepers from other European Union member states which was unjustified and discriminatory.
Lawyers representing the Home Office disagreed and disputed the men's claims.
But a judge on Thursday concluded that the policy was unlawful.
Mrs Justice Lang, who analysed the case at a High Court hearing in London in November, advised Home Secretary Amber Rudd to "take stock".
Lawyers said the judge had to consider whether a "right to reside" granted under European Union law was being abused by rough sleepers from other European countries.