Judge lets prosecutors use Luigi Mangione’s diary and gun at trial, but bars other backpack evidence.