I wasn't funded by him. I was on a scholarship and then on a TA, and was funded by the department.
Honestly this does sound pretty terrible. The student doesn’t have to publish, and you don’t get to misrepresent yourself as first author if they don’t want to.
Really really want to be first author, redo the work yourself. That’s the only way you can claim credit (and responsibility) for having done the work.