A tax ruling triggered a selloff in MLP exchange-traded funds and MLPs on Thursday, with the headwinds spilling over the broader energy sector as midstream companies bore the brunt of the losses.