US federal judge blocks California law barring guns in public