A federal judge has lifted the Obama administration's six-month moratorium on deepwater drilling.