Formerly home to the Venetian officials who cared for the city’s poor, the newly restored historic building now serves the local community as well as tourists