Some Republicans are asking how Mr. Trump’s military intervention in Venezuela squares with his past pledges to avoid foreign entanglements and nation building