M.2 Wi-Fi card device
M.2 Wi-Fi card device
Unless you can place the antenna in their area, I wouldn't suggest it. For Wi-Fi, consider a 12 dollar TP-Link USB adapter or a 30 dollar TP-Link PCIe card if you need it urgently.
The M.2 port labeled for NVMe can function similarly to U.2 if the connector orientation and placement match correctly.