A confidential White House review of President Trump’s decision to place a hold on military aid to Ukraine has turned up hundreds of documents that reveal extensive efforts to generate an after-the-fact justification for the decision and a debate over whether the delay was legal, according to three people familiar with the records.