The Republican nominee comfortably carried the Midwestern state four years ago, but polls heading into the final weeks showed Biden well within range, forcing the president to spend more time in the state than anyone expected.