The US President has claimed an old law meant he could legitimately deport them.