A federal investigation overshadowed the final months in office for this once-rising star of the Republican Party, with authorities looking into gifts he and his family received from a political donor.