Judge bars Trump from using troops in California