Emergency ruling allows districts to decide if seniors will graduate