Can Lights' bar hangers not long enough to span trusses (New construction)
Similar to @dandavis' comment, but you probably don't need to run the 3rd board.   Just nail two boards perpendicular to the trusses, spaced about 18" apart, and nail the canned light to those (so the light housing will be rotated 90 degrees from what you are showing in the picture).