The once-massive pay gap between Big Law and Big Tech is narrowing, and lawyers for technology companies are increasingly migrating to law firms to take advantage of swelling compensation.