The firm behind Wall Street’s “Fearless Girl” will pay a $5 million settlement for salary discrimination against women