A New York federal judge has dismissed a $6.4 billion lawsuit against Bristol-Myers Squibb Co., agreeing with counsel for the pharmaceutical company that plaintiffs lacked subject-matter jurisdiction.