A 36-year-old lawyer who has never tried a case and who was unanimously deemed “not qualified” by the American Bar Association has been approved for a lifetime federal district judgeship by the Senate Judiciary Committee.

The lawyer, Brett Talley, is the fourth judicial nominee under President Trump to receive a “not qualified” rating from the bar association and the second to receive the rating unanimously. Since 1989, the association has unanimously rated only two other judicial nominees as not qualified.

The Senate committee’s vote on Thursday to approve Mr. Talley, who graduated from Harvard Law School in 2007 and is a deputy assistant attorney general at the Justice Department, fell along party lines; Republican members outnumber Democrats on the committee 11 to nine. Mr. Talley will now face a full vote in the Senate. If confirmed, he would serve as a trial judge in his home state of Alabama.

Mr. Talley’s nomination is just one of the latest examples of Mr. Trump’s efforts to reshape the nation’s courts, packing them with young, deeply conservative judges.