The device you need is called "DC BIAS Tee". The RF is coupled via a capacitor (500 pF for 2...4 GHz), and DC current passes via a choke coil. The choke is made so it presents a high RF impedance to the RF line. For your RF of 2... 4 GHz, I usually wound a 10-turn coil with 0.2 m dia. wire (0.5 A max DC current) on ~3 mm diameter, the pull the turns so between them are ~0.2 mm gaps.
Such simple RF/DC separator works fine in 50 or 75 Ohm coaxial lines.
You can buy commercial models, e.g. at "www.minicircuits.com" for a reasonable cost.