A council worker with anxiety who was denied the option to work from home - despite her colleagues being able to - has won a landmark tribunal case.