A decision to end a former benefits worker’s job early and without explanation was influenced by the fact she was on maternity leave and was “tainted by discrimination”, an employment tribunal has found.