A Soyuz spacecraft carrying astronauts from Canada, Russia and the United States has undocked from the International Space Station and is headed back to Earth.