Foreign troops to stay in Afghanistan beyond May deadline