The 6-3 decision, with conservative justices in the majority, effectively killed the $400 billion plan, announced by President Joe Biden last year.