Mr. Ricketts secured Republicans’ grip on the deep-red state by defeating Dan Osborn, a mechanic and military veteran.