Lawyer to earn £3m fee