Observation of energy-resolved many-body localization