WASHINGTON — The Trump administration issued a permit Friday to build the Keystone XL pipeline, reversing the conclusion of the Obama administration and clearing the way for the $8 billion project to finally be completed. The decision caps a yearslong fight between environmental groups and energy industry advocates over the pipeline’s fate that became a proxy battle over global warming.