The Trump administration has finalized a rule that will prevent international students from staying in the U.S. for more than four years in most cases.