When Daniel Goldberg took his final exams last December, he was attired in little more than a baby-blue hospital gown with an intravenous line snaking out of his arm. Over the past year, Mr. Goldberg, a 24-year-old law student at Arizona State University, has toggled between attending classes and consulting with his doctors — sometimes…