With electronics brands reluctant to invest in modular design, legislators are taking matters into their own hands.