President Donald Trump has pardoned a Navy veteran who spent almost four years in prison for possessing and selling unregistered weapons.