We'll park the asteroid/spaceship in a stationary point relative to Earth, supported by photon pressure.
The photon pressure will balance the gravitational attraction of the Earth and the Sun, but the gravitational pull of the asteroid on the Earth will not be balanced by anything.
Slowly, as slowly or quickly as needed, Earth can be moved to a higher orbit.
This is a modification of the "gravity tug" idea recently suggested to handle errant asteroids.