President Donald Trump has pardoned two ranchers whose case sparked the armed occupation of a national wildlife refuge in Oregon.