Court sides with Texas on Planned Parenthood battle