Nigel Farage has won back his UK parliamentary seat despite an ongoing investigation into his finances.