The appellate court asked four simple questions to reach its ruling on the Trump travel ban