US forces to stay longer in Afghanistan