Can the US president just stop the killing by the US military or does he not have that much power?
Yes, he has the constitutional authority to order troop withdrawal at any time, it's more a matter of a) whether he wants to, and b) his advisors/generals will almost certainly resist