The invitation comes after Trump claimed he could resolve the war "in 24 hours" before he took office