President Trump’s nominee for secretary of the Army pulled out of the post Friday, amid what he says are politically motivated attacks from Democrats.