Advocates say the legislation would make domestic solar energy more accessible. Several states are considering similar laws.