The head of the U.K. Government Legal Department (GLD) has resigned, a person close to the matter confirmed on Tuesday.