House Speaker Nancy Pelosi says President Donald Trump was "unhappy" with her questions about his decision to pull US troops out of Syria.