Federal court rules against Endo in painkiller case