A stoppage time winner saw Phil Neville's Inter Miami beat Nashville 2-1 and move off the bottom of MLS' Eastern Conference.