The case marks the first legal challenge of its kind to President Donald Trump's policy targeting vessels along narco-trafficking routes.