Democrats can’t use their $3.5 trillion package bolstering social and climate programs for their plan to give millions of immigrants a chance to become citizens, the Senate’s parliamentarian said late Sunday, a crushing blow to what was the party’s clearest pathway in years to attaining that long-sought goal.