Hundreds of thousands of pounds could be paid out to rough sleepers who have been wrongly threatened with deportation by the Government.