WASHINGTON — President Donald Trump, admitting he came into office wanting to pull all U.S. troops out of Afghanistan, said Monday he had changed his mind and had approved an open-ended military commitment to prevent terrorist safe havens there. In a televised prime-time speech Monday night before an audience of troops at Fort Myer, across the…