Judge OKs settlement in BP class-action suit