Gender pay gap tackled with new ruling