A federal appeals court on Thursday rejected the federal government’s effort to restore an offshore deepwater drilling moratorium, opening the door to resumed drilling in the Gulf while the legal fight continues.