Richard Davey, the head of New York City Transit, is leaving the MTA to take over the Massachusetts Port Authority after its board voted to offer him the CEO spot Wednesday.Davey — who previously chaired Massport’s board and is said to be close with Massachusetts Gov. Maura Healey and various state transportation officials — is…