President Trump claimed undue credit for the “safest year on record” in commercial aviation, despite having done little on the issue.