Farage’s plan to scrap indefinite leave to remain would ‘trash UK’s reputation’ and be blocked in court, lawyers say