Teen granted right to return home to die