Court orders US to open up on drone attacks