A judge in Rome has indicted two high-ranking Italian officials for their alleged role in the deaths of hundreds of refugees who tried to reach Italy by boat.