A new law would require developers to fund, build, or expand existing GP surgeries, the party says.