Former Montana lawmaker settles dark money allegations