Gas and electricity used in a landlord’s New York state apartment buildings, including common areas, are eligible for a sales tax exemption for residential energy sales, the state tax department said in an opinion released Tuesday.