First-year doctors will be allowed to work 24-hour shifts in hospitals across the United States starting July 1, when a much-debated cap that limits the physicians to 16 consecutive hours of patient care is lifted, the organization that oversees their training announced Friday.The Accreditation Council for Graduate Medical Education said the change will enhance patient safety because there will be fewer handoffs from doctor to doctor.