Japan's Supreme Court has made a landmark decision allowing the sale of a book of erotic photographs by the late Robert Mapplethorpe.