Building-sized asteroid no longer a threat to Earth, but could strike the Moon