A federal judge granted preliminary approval for settlement of a $29.9 million class action lawsuit brought against the city by FDNY fire protection inspectors.