Denmark gave its approval on Friday for the construction in its waters of a planned pipeline to bring Norwegian gas to Poland, as part of Warsaw’s efforts to end its reliance on imports from Russia.