Scott Pruitt allowed a lobbyist friend to play an unusually influential role in setting his agenda during a visit in December to Morocco.