An aspiring doctoral student who failed a paper required for her course has won an order for the university to pay her back the $8000 she spent on fees.