The Justice Department said natural gas bans in Petaluma and Morgan Hill drive up costs and conflict with federal policy.