The Patriots rallied from an early deficit to beat the Dolphins, 27-17.