WASHINGTON—The National Rifle Association, which spent president, is preparing to go on the offense in the friendliest political environment for its causes in at least a decade.

With Republicans holding Congress and the White House starting in January, the gun-rights organization will push an agenda that was stymied during President Barack Obama’s two terms in office.

The...