The number of applicants nearly matched the record 23 million applicants received in 2016 and came as the Trump administration and some members of Congress have sought to eliminate the program – the only one of its kind globally.