Afghan supreme court extends Ghani’s term until delayed elections