President Donald Trump offered a full-throated endorsement of the National Rifle Association as the organization mounted an offensive against efforts to tighten gun restrictions in the wake of a Florida school shooting that killed 17 people.