Far ultraviolet spectroscopy of the intergalactic and interstellar absorption toward 3c 273