In a 6-3 decision, the justices determined contractors do not automatically share the government’s immunity.