A hospital cleaner who took more than 400 sick days in four years has been awarded almost £50,000 in compensation after a court ruled she was unfairly dismissed.