WASHINGTON — President Obama decided in recent weeks to authorize a more expansive mission for the military in Afghanistan in 2015 than originally planned, a move that ensures American troops will have a direct role in fighting in the war-ravaged country for at least another year.