All you need to do is make sure the gun is registered under your name in the US, declare it to the airline when you check in, and declare it in your customs declaration form. Make sure it is in unloaded and locked.
I did something like this a few years ago. Only I went to Canada to pickup a hunting rifle my late grandfather left to me. So I spent hours talking to customs about transport of firearms across the border.