Caine, a three-star general whom Trump has praised since at least 2019, helped lead an operation in Iraq against the Islamic State during Trump’s first term.