The Prime Minister has abandoned his plans for mandatory digital ID cards to verify someone’s right to work in the UK.