The Supreme Court on Thursday made it harder for longtime immigrants who have been convicted of a crime to avoid deportation.