A judge in the US has ruled on what evidence can be used in the trial of Luigi Mangione, accused of murdering a healthcare chief executive.