Two German warships have entered the Taiwan Strait on a freedom of navigation exercise, the first such transit by German naval ships in over two decades.