The Chabauty-Kim Method For Relative Completions