High Resolution X-Ray Spectroscopy of The Gas Surrounding M87 and NGC1275: Emission Line Detection and Evidence for Radiatively Regulated Accretion