Barclays must pay a former employee almost £50,000 after failing to adjust her hours while she suffered from endometriosis.