President Barack Obama has suffered another defeat in court on his executive order for illegal immigrants.