During his first two years in office, Trump’s job rating among members of his own party was relatively high compared with recent presidents.