You need a USB-C to Mini DisplayPort Adapter.
https://www.uptab.com/usb-c-to-mini-displayport-adapter-4k-60hz-silver/
You also need a USB-C to USB-A adapter for the display's USB plug.
https://www.apple.com/shop/product/MJ1M2AM/A/usb-c-to-usb-adapter
This uses two of the MacBook Pro's USB-C/Thunderbolt 3 ports, but the UPTAB has an extra USB-C (charger only) port that can be used to power the computer.
You can get power from the display's MagSafe plug with a USB-C adapter.
http://www.macbookadapter.com/magsafe-2-to-usb-c-power-adapter/
https://elecjet.com/products/anywatt-magsafe
This won't provide as much power as the normal charger, but may be sufficient.
If it's been less than 14 days, you can return the Apple Thunderbolt adapter for a refund,