US Markets ended a four-week losing streak on Friday, closing slightly higher after a volatile session driven by options expirations and trade policy developments.