Formation of Lunar Basins from Impacts of Leftover Planetesimals