U.S. equities closed higher in choppy trade on Friday after Donald Trump took a protectionist tone in his first speech as president.

"We must protect our borders from the ravages of other countries making our products, stealing our companies, and destroying our jobs," Trump said after being sworn in. "Protection will lead to great prosperity and strength. I will fight for you with every breath in my body and I will never ever let you down."