A NASA spacecraft is "safe" after making the closest-ever approach to the sun by a human-made object, the space agency says.