Obama really had but two choices: Go with the JSOC mission or not go at all. He made the right decision. Regrettably, he also decided he wanted everyone to know about it.
Obama's a narcissist; he always wants to let everyone know what he does, if he thinks it will help him politically.